package com.tql.pandian.util;

import com.tql.pandian.service.ITqlHllShopBillFoodService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 定时任务
 */
@Slf4j
@Component
public class ScheduledTask {

    @Autowired
    private ITqlHllShopBillFoodService hllShopBillFoodService;
    /**
     * 时间标识
     */
    @Scheduled(cron = "0 50 23 ? *")
    public void foodTask(){
        hllShopBillFoodService.insertBillFoodReportDay();
    }
}
